package cn.wolfcode.crm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Getter@Setter
public class CashierBill {
    private Long id;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date vdate;
    private Boolean state;//是否是挂单状态
    //销售数量和销售额
    private BigDecimal number;
    private BigDecimal saleAmmount;

    private String shop_name;

    //关联销售人员
    private Employee saleman;
    //关联会员信息
    private Member member; //会员信息,卡号

    //关联明细单
    List<CashierBillitem> items = new ArrayList<>();
}